#!/bin/bash

set -e

bpftool="$1"
output="$2"
lib="$3"
dir="$PWD/lib"

libs=`find $dir -type f -name *.bpf.o | grep -v $lib.bpf.o`

${bpftool} gen object "$output" $libs
